<%@ page language="java" import="java.util.*, java.text.*,com.zjut.zs.util.tools.*,com.zjut.an.util.tools.*,com.zjut.an.util.system.*,com.zjut.an.news.manager.*, com.zjut.an.news.dao.*, 
com.zjut.zs.user.manager.*, com.zjut.zs.user.dao.*,com.zjut.zs.cj.manager.*,com.zjut.zs.userstatus.manager.*, com.zjut.zs.userstatus.dao.*,
com.zjut.zs.school.manager.*, com.zjut.zs.school.dao.*, com.zjut.zs.cj.dao.*,com.zjut.an.config.manager.*, com.zjut.an.config.dao.*" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">  
<meta name="renderer" content="webkit"> 
<title>无标题文档</title>
<script type="text/javascript" src="../plugins/assets/plugins/jquery-3.5.1.min.js"></script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<style type="text/css">
<!--

*{border:0;margin:0;padding:0;}
body{font-family:'微软雅黑'; margin:0 auto;}
ul{display:block;margin:0;padding:0;list-style:none;}
li{display:block;margin:0;padding:0;list-style: none;}
img{border:0;}
a,a:focus{text-decoration:none;color:#000;outline:none;blr:expression(this.onFocus=this.blur());}

/*right.html*/
.place{height:40px; background:url(images/righttop.gif) repeat-x;font-size:9pt;}
.place span{line-height:40px; font-weight:bold;float:left; margin-left:12px;}
.placeul li{float:left; line-height:40px; padding-left:7px; padding-right:12px; background:url(images/rlist.gif) no-repeat right;}
.placeul li:last-child{background:none;}
.rightinfo{padding:8px;}
.tools{clear:both; height:35px; margin-bottom:8px;}
.toolbar{float:left;}
.toolbar li{background:url(images/toolbg.gif) repeat-x; line-height:33px; height:33px; border:solid 1px #d3dbde; float:left; padding-right:10px; margin-right:5px;border-radius: 3px; behavior:url(js/pie.htc); cursor:pointer;}
.toolbar li span{float:left; margin-left:10px; margin-right:5px; margin-top:5px;}
.toolbar1{float:right;width:300px;text-align:right;margin:2px;}
.toolbar1 li{background:url(images/toolbg.gif) repeat-x; line-height:33px; height:33px; border:solid 1px #d3dbde; float:left; padding-right:10px; margin-left:5px;border-radius: 3px; behavior:url(js/pie.htc);}
.toolbar1 li span{float:left; margin-left:10px; margin-right:5px; margin-top:5px;}
.tablelist{border:solid 1px #cbcbcb; width:100%; clear:both;}
.tablelist th{background:url(images/th.gif) repeat-x; height:34px; line-height:34px; border-bottom:solid 1px #b6cad2; text-indent:11px; text-align:left;}
.tablelist td{line-height:35px; height:35px; text-indent:11px; border-right: dotted 1px #c7c7c7; }
.tablelink{color:#056dae;}
.tablelist tbody tr.odd{background:#f5f8fa;}
.sort{padding-left:3px;}

/*form*/
.formbody{padding:10px 18px;}
.formtitle{border-bottom:solid 1px #d0dee5; line-height:35px; position:relative; height:35px; margin-bottom:28px;}
.formtitle span{font-weight:bold;font-size:14px; border-bottom:solid 3px #66c9f3;float:left; position:absolute; z-index:100; bottom:-1px; padding:0 3px; height:30px; line-height:30px;}
.forminfo{padding-left:23px;}
.forminfo li{margin-bottom:13px;}

.forminfo li label{width:100px;line-height:34px; display:block; float:left;}
.forminfo li i{color:#7f7f7f; padding-left:20px; font-style:normal;}
.forminfo li i.error {color:#c00;}
.forminfo li cite{display:block; padding-top:10px;}
.dfinput{width:345px; height:32px; line-height:32px; border-top:solid 1px #a7b5bc; border-left:solid 1px #a7b5bc; border-right:solid 1px #ced9df; border-bottom:solid 1px #ced9df; background:url(images/inputbg.gif) repeat-x; text-indent:10px;}
.sfinput{width:100px; height:32px; line-height:32px; border-top:solid 1px #a7b5bc; border-left:solid 1px #a7b5bc; border-right:solid 1px #ced9df; border-bottom:solid 1px #ced9df; background:url(images/inputbg.gif) repeat-x; text-indent:10px;}
.smfinput{width:50px; height:32px; line-height:32px; border-top:solid 1px #a7b5bc; border-left:solid 1px #a7b5bc; border-right:solid 1px #ced9df; border-bottom:solid 1px #ced9df; background:url(images/inputbg.gif) repeat-x; text-indent:10px;}
.textinput{border-top:solid 1px #a7b5bc; border-left:solid 1px #a7b5bc; border-right:solid 1px #ced9df; border-bottom:solid 1px #ced9df; background:url(images/inputbg.gif) repeat-x; padding:10px; width:504px; height:150px; line-height:20px; overflow:hidden;}
.btn{width:137px;height:35px; background:url(images/btnbg.png) no-repeat; font-size:14px;font-weight:bold;color:#fff; cursor:pointer;}
.btndisable{width:137px;height:35px; background:url(images/btnbgdisable.png) no-repeat; font-size:14px;font-weight:bold;color:#fff; cursor:pointer;}
.welbtn{width:300px;height:50px; background:#90bd18; font-size:18px;font-weight:bold;color:#fff; cursor:pointer;}
.welbtndisable{width:300px;height:35px; background:#ccc; font-size:14px;font-weight:bold;color:#fff; cursor:pointer;}

.formbody li label {
	width:150px;
}
.formbody .vocation label {
	width:100px;
}
.formtitle{border-bottom:solid 1px #d0dee5; line-height:35px; position:relative; height:35px; margin-bottom:28px;font-size:24px;}
.select1 {
	border:1px solid #ccc;
	padding:8px;
	width:100px;
}
.tipinfo font.error{background:url("images/unchecked.jpg") no-repeat left;padding-left:17px;color:#eb0000;width:300px;display:block;}
.tipinfo font.valid{background:url("images/checked.gif") no-repeat left;width:14px;height:13px;overflow:hidden;padding:0;margin:5px 0 0 5px;display:inline-block;} 
-->
</style>
<body>
<jsp:include page="zs_uservalidate.jsp" flush="true"/>
<%
if (session.getAttribute("zsUser") == null&&session.getAttribute("admin") == null&&session.getAttribute("user") == null) {
	out.print("<script>alert('由于长时间未操作，系统已经自动注销，请重新登陆');</script>");
	out.print("<script>top.window.location='main.jsp';</script>");
} else {

AnConfigManager anconfig = (AnConfigManager) SpringContextUtil.getBean("AnConfigManager");
ZsHTMLCreat html = (ZsHTMLCreat) SpringContextUtil.getBean("ZsHTMLCreat");
ZsSchoolManager zsManager = (ZsSchoolManager) SpringContextUtil.getBean("ZsSchoolManager");
AnNewsManager manager = (AnNewsManager) SpringContextUtil.getBean("AnNewsManager");
ZsCjManager cmanager = (ZsCjManager) SpringContextUtil.getBean("ZsCjManager");
ZsUserManager umanager = (ZsUserManager) SpringContextUtil.getBean("ZsUserManager");
ZsUserStatusManager smanager = (ZsUserStatusManager) SpringContextUtil.getBean("ZsUserStatusManager");
DateUtil dateutil=(DateUtil) SpringContextUtil.getBean("DateUtil");

ZsUser user = null;
if(session.getAttribute("admin")!=null && request.getParameter("usId")!=null) {
	String usId = request.getParameter("usId");
	user = umanager.getData(usId);
} else if (session.getAttribute("zsUser")!=null) {
	user = (ZsUser)session.getAttribute("zsUser");	
} 	
ZsUserStatus userstatus = smanager.getDataByUser(user);
ZsCj cj = cmanager.getDataByUser(user);
AnNews news = new AnNews();
news.setTitle("疫情防控考生注意事项");
List list = manager.getDataByInstance(1,1,null,null,news).getObjects();
if(list.size()>0) {
	news = (AnNews)list.get(0);
}
 %>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="index.jsp">首页</a></li>
    <li><a href="#">疫情健康申报</a></li>
    </ul>
    </div>
    
    
		
	<div class="forminfo">
      <%=news.getNeContent() %>
    </div>
    
    
    <div class="formbody">
    
    <ul class="forminfo" style="clear:both;">
	<li><div class="xline"></div></li>
    <form id="ff" name="add" role="form" class="form-horizontal" action="" method="post">
	<li class="clear"><label>本人是否已申领并取得浙江“健康码”绿码：</label>
    <div class="vocation">
    <label><input type="radio" name="cjYw1" id="cjYw1" value="是" <%if(cj.getCjYw1()!=null&&cj.getCjYw1().contains("是"))out.print("checked=true"); %> >是 </label>
    <label><input type="radio" name="cjYw1" id="cjYw1" value="否" <%if(cj.getCjYw1()!=null&&cj.getCjYw1().contains("否"))out.print("checked=true"); %> >否 </label>
    </div>
    </li>
    <li class="clear"><label>本人是否在考前21天内有国内疫情中高风险地区或考前28天内国（境）外旅居史：</label>
    <div class="vocation">
    <label><input type="radio" name="cjYw2" id="cjYw2" value="是" <%if(cj.getCjYw2()!=null&&cj.getCjYw2().contains("是"))out.print("checked=true"); %> >是 </label>
    <label><input type="radio" name="cjYw2" id="cjYw2" value="否" <%if(cj.getCjYw2()!=null&&cj.getCjYw2().contains("否"))out.print("checked=true"); %> >否 </label>
    </div>
    </li>
    <li class="clear"><label>本人考前14天内是否有浙江省外旅居史：</label>
    <div class="vocation">
    <label><input type="radio" name="cjYw3" id="cjYw3" value="是" <%if(cj.getCjYw3()!=null&&cj.getCjYw1().contains("是"))out.print("checked=true"); %> >是 </label>
    <label><input type="radio" name="cjYw3" id="cjYw3" value="否" <%if(cj.getCjYw3()!=null&&cj.getCjYw1().contains("否"))out.print("checked=true"); %> >否 </label>
    </div>
    </li>
    <li class="clear"><label>本人在考前14天内是否有过发热（37.3度及以上）、干咳、乏力、咽痛或腹泻等症状：</label>
    <div class="vocation">
    <label><input type="radio" name="cjYw4" id="cjYw4" value="是" <%if(cj.getCjYw4()!=null&&cj.getCjYw4().contains("是"))out.print("checked=true"); %> >是 </label>
    <label><input type="radio" name="cjYw4" id="cjYw4" value="否" <%if(cj.getCjYw4()!=null&&cj.getCjYw4().contains("否"))out.print("checked=true"); %> >否 </label>
    </div>
    </li>
    <li class="clear"><label>本人是否为既往新冠肺炎确诊病例、无症状感染者或密切接触者：</label>
    <div class="vocation">
    <label><input type="radio" name="cjYw5" id="cjYw5" value="是" <%if(cj.getCjYw5()!=null&&cj.getCjYw5().contains("是"))out.print("checked=true"); %> >是 </label>
    <label><input type="radio" name="cjYw5" id="cjYw5" value="否" <%if(cj.getCjYw5()!=null&&cj.getCjYw5().contains("否"))out.print("checked=true"); %> >否 </label>
    </div>
    </li>
    <li class="clear"><label>本人是否为仍在隔离治疗中的新冠肺炎确诊病例、疑似病例、无症状感染者，以及集中隔离期未满的密切接触者：</label>
    <div class="vocation">
    <label><input type="radio" name="cjWy1" id="cjWy1" value="是" <%if(cj.getCjWy1()!=null&&cj.getCjWy1().contains("是"))out.print("checked=true"); %> >是 </label>
    <label><input type="radio" name="cjWy1" id="cjWy1" value="否" <%if(cj.getCjWy1()!=null&&cj.getCjWy1().contains("否"))out.print("checked=true"); %> >否 </label>
    </div>
    </li>
    <li class="clear"><label> 我已下载“三位一体考生健康状况报告表”：</label>
    <div class="vocation">
    <label><input type="radio" name="cjWy2" id="cjWy2" value="是" <%if(cj.getCjWy2()!=null&&cj.getCjWy2().contains("是"))out.print("checked=true"); %> >是 </label>
    <label><input type="radio" name="cjWy2" id="cjWy2" value="否" <%if(cj.getCjWy2()!=null&&cj.getCjWy2().contains("否"))out.print("checked=true"); %> >否 </label>
    </div>
    </li>
    <li class="clear"><input type="checkbox" name="cjWy5" id="cjWy5" value="是" required <%if("是".equals(cj.getCjWy5()))out.print("checked"); %>>
        本人已详尽阅读三位一体公告及疫情防控有关告知事项说明，了解本人健康证明义务及考试防疫要求，自愿遵守考试期间疫情防控管理有关规定。本人承诺：本人符合本次考试疫情防控有关要求。本人承诺：本人填写以上内容完全真实准确，如有虚假或隐瞒，自愿承担相关责任并接受处理。自本人申报健康情况之日至开考时，如上述填报信息发生变化，将及时主动向学校报告。</li>
    <li class="clear">
    <div class="vocation">
    	<%
    	if (null==cj.getCjYw2() || session.getAttribute("admin")!=null){ %>
    	<input id="cjWy3" name="cjWy3" type="text" class="dfinput" value="<%=cj.getCjWy3() %>"   style="display:none;"/>
		<input id="cjWy4" name="cjWy4" type="text" class="dfinput" value="<%=dateutil.getCurrentDate5()%>" style="display:none;"/>
		<input id="zsUser.usId" name="zsUser.usId" type="text" class="dfinput" value="<%=cj.getZsUser().getUsId() %>"  style="display:none;"/>  
    	<input id="cjId" name="cjId" type="text" class="dfinput" value="<%if(null==cj.getCjId()){out.print("");}else{out.print(cj.getCjId());}; %>" style="display:none;"/>
    	<button type="submit" class="btn btn-primary btn-sm">申报</button>
    	<%
		} else { %>
		<button type="button" id="btnReg" class="btndisable" disabled>已申报</button>
    	<%
    	out.println("申报时间："+cj.getCjWy3());
    	} 
    	%>
    </div>
    <i></i></li>
    </form>
    
    </ul>
    </div>
		
<div style="margin:50px;width:500px;float:left;"><%out.print(anconfig.getSingleConfigInfoByName("健康申报填写需知")); %></div>


<script src="../plugins/assets/plugins/jquery-validation-1.14.0/dist/jquery.validate.js" type="text/javascript"></script>
<script src="../plugins/assets/plugins/jquery-validation-1.14.0/dist/jquery.metadata.js" type="text/javascript"></script>
<script src="js/formvalidate.js" type="text/javascript"></script>
<script src="../admin/js/publicManager.js" type="text/javascript" charset="utf-8"></script> 

		<script type="text/javascript">
		var updateOneAction = '../zsCjSave.action?randnum='+Math.floor(Math.random()*1000000);
		var loactionurl = 'zs_jk.jsp';
			
		$(function(){
			 
			$("#ff").validate({
				submitHandler: function() {
					if (confirm("请仔细并如实填写所有信息，一旦提交将无法修改，是否确认并提交"))  {  
						//验证通过后 的js代码写在这里
						if($("#cjYw1").val()==""||$("#cjYw2").val()==""||$("#cjYw3").val()==""||$("#cjYw4").val()==""||$("#cjYw5").val()==""||$("#cjWy1").val()==""||$("#cjWy2").val()==""||) {
							alert("尚未勾选确认选项！");
						} else if($("#cjWy5").is(":checked")) {
							submitFormAdvance();
						} else {
							alert("尚未勾选确认选项！");
						} 
					}
				}
			})
		})
		</script>
		
<%} %>		
</body>

</html>
